package com.ruoyi.api.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.api.service.ShoproServer;
import com.ruoyi.weixin.shop.domain.*;
import com.ruoyi.weixin.shop.mapper.*;
import com.ruoyi.weixin.shop.service.IWxFloatButtonService;
import com.ruoyi.weixin.shop.service.IWxShareService;
import com.ruoyi.weixin.shop.service.IWxShopService;
import com.ruoyi.weixin.shop.service.YxSystemGroupDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;

/**
 * @author anan.
 * @version 1.0
 * @create 2021-07-08 16-16
 */
@Service
public class ShoproServerImpl implements ShoproServer {

	@Autowired
	private IWxShopService wxShopService;

	@Autowired
	private IWxShareService wxShareService;

	@Autowired
	private YxStoreCouponMapper yxStoreCouponMapper;

	@Autowired
	private WxShopMenuMapper wxShopMenuMapper;

	@Autowired
	private YxStoreCombinationMapper yxStoreCombinationMapper;

	@Autowired
	private WxHomeLayoutMapper wxHomeLayoutMapper;

	@Autowired
	private WxFloatButtonMapper wxFloatButtonMapper;

	@Autowired
	private WxTabbarMapper wxTabbarMapper;

	@Autowired
	private YxSystemGroupDataService groupDataService;

	/**
	 * 商城初始化
	 */
	@Override
	public JSONObject getInit() {
		//addons:插件配置  chat:客服配置 payment:支付信息 store:店铺 wechat: shop:版本信息
		String initStr = "{addons: [\"alisms\", \"development\", \"epay\", \"geetest\", \"shopro\", \"summernote\"],\n" +
						"chat: {basic: {allocate: \"busy\", last_customer_service: 1, notice: \"显示在用户端头部\"},\n" +
								"system: {business_worker_num: 4,\n" +
										"business_worker_port: 2238,\n" +
										"gateway_num: 2,\n" +
										"gateway_port: 1819,\n" +
										"gateway_start_port: 2010,\n" +
										"is_ssl: 1,\n" +
										"ssl_cert: \"/www/server/panel/vhost/cert/****/fullchain.pem\",\n" +
										"ssl_key: \"/www/server/panel/vhost/cert/****/privkey.pem\",\n" +
										"ssl_type: \"reverse_proxy\"},\n" +
								"type: \"shopro\"},\n" +
						"payment: [\"wechat\", \"alipay\", \"wallet\"],\n" +
						"store: {protocol: \"\", selfetch_protocol: \"\"},\n" +
						"wechat: {autologin: true, appid: \"wx39cd0799d4567dd0\"}}";
		JSONObject jsonObject = JSON.parseObject(initStr);
		WxShop wxShop = wxShopService.getOne(null);
		WxShare wxShare = wxShareService.getOne(null);
		jsonObject.put("shop", JSON.parseObject(JSONObject.toJSONString(wxShop)));
		jsonObject.put("share", JSON.parseObject(JSONObject.toJSONString(wxShare)));
		return jsonObject;
	}

	/**
	 * 优惠券
	 * @return
	 */
	@Override
	public List<YxStoreCoupon> getCouponsLists(String ids) {
		return yxStoreCouponMapper.listCoupons(ids);
	}

	@Override
	public JSONObject getGoodsLists(String category_id,String page) {


		String goodsStr = "{current_page: 1,\n" +
							"data: [{activity: null,\n" +
									"activity_discounts: [{endtime: \"1627315200\",\n" +
															"goods_ids: \"\",\n" +
															"id: \"6\",\n" +
															"richtext_id: \"0\",\n" +
															"richtext_title: \"\",\n" +
															"rules: {type: \"money\", province_except: \"\", city_except: \"\", area_except: \"\", area_text: \"\", full_num: \"300\"},\n" +
															"starttime: \"1623081600\",\n" +
															"status_code: \"ing\",\n" +
															"tag: \"满300元包邮\",\n" +
															"tags: [\"满300元包邮\"],\n" +
															"title: \"测试包邮\",\n" +
															"type: \"free_shipping\"}," +
															"{endtime: \"1626537600\",\n" +
															"goods_ids: \"16,29\",\n" +
															"id: \"15\",\n" +
															"richtext_id: \"0\",\n" +
															"richtext_title: \"\",\n" +
															"rules: {type: \"money\", discounts: [{full: \"100\", discount: \"8\"}]},\n" +
															"starttime: \"1624464000\",\n" +
															"status_code: \"ing\",\n" +
															"tag: \"满100元8折\",\n" +
															"tags: [\"满100元8折\"],\n" +
															"title: \"测啊\",\n" +
															"type: \"full_discount\"}],\n" +
									"activity_discounts_tags: [\"满300元包邮\", \"满100元8折\"],\n" +
									"activity_discounts_types: \"free_shipping,full_discount\",\n" +
									"activity_type: null,\n" +
									"buyers: [],\n" +
									"category_ids: \"68\",\n" +
									"deletetime: null,\n" +
									"dispatch_ids: \"3,2\",\n" +
									"dispatch_type: \"selfetch,store\",\n" +
									"dispatch_type_arr: [\"selfetch\", \"store\"],\n" +
									"id: 16,\n" +
									"image: \"http://file.shopro.top/uploads/20210518/0edcc0e6fe7618200f4c46415b897ecc.jpg\",\n" +
									"is_sku: 1,\n" +
									"likes: 0,\n" +
									"original_price: \"299.00\",\n" +
									"price: \"149\",\n" +
									"sales: 2468,\n" +
									"show_sales: 2440,\n" +
									"sku_price: [{goods_id: 16,\n" +
												"goods_sku_id_arr: [\"53\"],\n" +
												"goods_sku_ids: \"53\",\n" +
												"goods_sku_text: \"浅蓝灰\",\n" +
												"id: 64,\n" +
												"image: \"http://file.shopro.top/uploads/20210518/04f9728699dc70b2f8195c63c8eb0be8.jpg\",\n" +
												"price: \"149.00\",\n" +
												"sales: 12,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 88,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}," +
												"{goods_id: 16,\n" +
												"goods_sku_id_arr: [\"54\"],\n" +
												"goods_sku_ids: \"54\",\n" +
												"goods_sku_text: \"深灰\",\n" +
												"id: 65,\n" +
												"image: \"http://file.shopro.top/uploads/20210518/7dc158213fb04502fc25a5d8012de876.jpg\",\n" +
												"price: \"149.00\",\n" +
												"sales: 8,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 92,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}," +
												"{goods_id: 16,\n" +
												"goods_sku_id_arr: [\"55\"],\n" +
												"goods_sku_ids: \"55\",\n" +
												"goods_sku_text: \"浅灰\",\n" +
												"id: 66,\n" +
												"image: \"http://file.shopro.top/uploads/20210518/d48d09d947a0f374f2fd14eff80e6a7a.jpg\",\n" +
												"price: \"149.00\",\n" +
												"sales: 8,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 92,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}],\n" +
									"stock: 272,\n" +
									"subtitle: \"100%精梳全棉水洗棉 超柔触感 裸睡佳选\",\n" +
									"title: \"北欧风简约水洗棉床上四件套全棉纯棉100夏季被套床单床笠三件套4\",\n" +
									"total_sales: 2468,\n" +
									"type: \"normal\",\n" +
									"views: 121863,\n" +
									"weigh: 0}," +

									"{activity: null,\n" +
									"activity_discounts: [{endtime: \"1627315200\",\n" +
														"goods_ids: \"\",\n" +
														"id: \"6\",\n" +
														"richtext_id: \"0\",\n" +
														"richtext_title: \"\",\n" +
														"rules: {type: \"money\", province_except: \"\", city_except: \"\", area_except: \"\", area_text: \"\", full_num: \"300\"},\n" +
														"starttime: \"1623081600\",\n" +
														"status_code: \"ing\",\n" +
														"tag: \"满300元包邮\",\n" +
														"tags: [\"满300元包邮\"],\n" +
														"title: \"测试包邮\",\n" +
														"type: \"free_shipping\"}],\n" +
									"activity_discounts_tags: [\"满300元包邮\"],\n" +
									"activity_discounts_types: \"free_shipping\",\n" +
									"activity_type: null,\n" +
									"buyers: [],\n" +
									"category_ids: \"68\",\n" +
									"deletetime: null,\n" +
									"dispatch_ids: \"1\",\n" +
									"dispatch_type: \"express\",\n" +
									"dispatch_type_arr: [\"express\"],\n" +
									"id: 19,\n" +
									"image: \"http://file.shopro.top/uploads/20210519/4228275afdf8468d80e5d4e5a803175a.jpeg\",\n" +
									"is_sku: 1,\n" +
									"likes: 0,\n" +
									"original_price: \"236.00\",\n" +
									"price: \"158\",\n" +
									"sales: 18,\n" +
									"show_sales: 0,\n" +
									"sku_price: [{goods_id: 19,\n" +
												"goods_sku_id_arr: [\"70\", \"73\"],\n" +
												"goods_sku_ids: \"70,73\",\n" +
												"goods_sku_text: \"L穆尼,1.8M床\",\n" +
												"id: 84,\n" +
												"image: \"http://file.shopro.top/uploads/20210519/cb8a30459240899831a9b65778e3c9cd.jpeg\",\n" +
												"price: \"158.00\",\n" +
												"sales: 4,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 1229,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}," +
												"{goods_id: 19,\n" +
												"goods_sku_id_arr: [\"71\", \"73\"],\n" +
												"goods_sku_ids: \"71,73\",\n" +
												"goods_sku_text: \"L卡昂,1.8M床\",\n" +
												"id: 85,\n" +
												"image: \"http://file.shopro.top/uploads/20210519/acafc6fecb02414a369d9c6730925893.jpeg\",\n" +
												"price: \"158.00\",\n" +
												"sales: 1,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 1232,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}," +
												"{goods_id: 19,\n" +
												"goods_sku_id_arr: [\"70\", \"74\"],\n" +
												"goods_sku_ids: \"70,74\",\n" +
												"goods_sku_text: \"L穆尼,2.0M床\",\n" +
												"id: 86,\n" +
												"image: \"http://file.shopro.top/uploads/20210519/cb8a30459240899831a9b65778e3c9cd.jpeg\",\n" +
												"price: \"158.00\",\n" +
												"sales: 7,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 1226,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}," +
												"{goods_id: 19,\n" +
												"goods_sku_id_arr: [\"71\", \"74\"],\n" +
												"goods_sku_ids: \"71,74\",\n" +
												"goods_sku_text: \"L卡昂,2.0M床\",\n" +
												"id: 87,\n" +
												"image: \"http://file.shopro.top/uploads/20210519/acafc6fecb02414a369d9c6730925893.jpeg\",\n" +
												"price: \"158.00\",\n" +
												"sales: 6,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 1227,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}],\n" +
									"stock: 4914,\n" +
									"subtitle: \"100%纯棉面料 真133*72高密斜纹喷气款 佳品\",\n" +
									"title: \"极简全棉纯棉床上用品四件套现代简约北欧男床单3三件套床笠被套\",\n" +
									"total_sales: 18,\n" +
									"type: \"normal\",\n" +
									"views: 45678,\n" +
									"weigh: 0}," +

									"{activity: null,\n" +
									"activity_discounts: [{endtime: \"1627315200\",\n" +
														"goods_ids: \"\",\n" +
														"id: \"6\",\n" +
														"richtext_id: \"0\",\n" +
														"richtext_title: \"\",\n" +
														"rules: {type: \"money\", province_except: \"\", city_except: \"\", area_except: \"\", area_text: \"\", full_num: \"300\"},\n" +
														"starttime: \"1623081600\",\n" +
														"status_code: \"ing\",\n" +
														"tag: \"满300元包邮\",\n" +
														"tags: [\"满300元包邮\"],\n" +
														"title: \"测试包邮\",\n" +
														"type: \"free_shipping\"}],\n" +
									"activity_discounts_tags: [\"满300元包邮\"],\n" +
									"activity_discounts_types: \"free_shipping\",\n" +
									"activity_type: null,\n" +
									"buyers: [],\n" +
									"category_ids: \"65\",\n" +
									"deletetime: null,\n" +
									"dispatch_ids: \"1\",\n" +
									"dispatch_type: \"express\",\n" +
									"dispatch_type_arr: [\"express\"],\n" +
									"id: 21,\n" +
									"image: \"http://file.shopro.top/uploads/20210519/e47015df4dcd94479b26e475f221179b.jpeg\",\n" +
									"is_sku: 1,\n" +
									"likes: 0,\n" +
									"original_price: \"40.00\",\n" +
									"price: \"23\",\n" +
									"sales: 22,\n" +
									"show_sales: 0,\n" +
									"sku_price: [{goods_id: 21,\n" +
												"goods_sku_id_arr: [\"81\"],\n" +
												"goods_sku_ids: \"81\",\n" +
												"goods_sku_text: \"松石绿\",\n" +
												"id: 92,\n" +
												"image: \"http://file.shopro.top/uploads/20210519/4c694a815b06a0d297e4a6b193da67f1.jpeg\",\n" +
												"price: \"23.00\",\n" +
												"sales: 0,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 110440,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}," +
												"{goods_id: 21,\n" +
												"goods_sku_id_arr: [\"82\"],\n" +
												"goods_sku_ids: \"82\",\n" +
												"goods_sku_text: \"橙黄\",\n" +
												"id: 93,\n" +
												"image: \"http://file.shopro.top/uploads/20210519/2848bf9593187f7f5d5c405497ac38b1.jpeg\",\n" +
												"price: \"23.00\",\n" +
												"sales: 22,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 110418,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}],\n" +
									"stock: 220858,\n" +
									"subtitle: \"天鹅绒抱枕套不含芯\",\n" +
									"title: \"北欧抱枕靠垫沙发靠垫办公室腰靠枕床头靠背垫\",\n" +
									"total_sales: 22,\n" +
									"type: \"normal\",\n" +
									"views: 44566,\n" +
									"weigh: 0}," +

									"{activity: {endtime: \"1627660800\",\n" +
												"goods_ids: \"24,23,22\",\n" +
												"id: \"20\",\n" +
												"richtext_id: \"3\",\n" +
												"richtext_title: \"关于我们\",\n" +
												"rules: {activity_auto_close: \"10\", limit_buy: \"5\", order_auto_close: \"10\"},\n" +
												"starttime: \"1625587200\",\n" +
												"status_code: \"ing\",\n" +
												"title: \"718秒杀活动\",\n" +
												"type: \"seckill\"},\n" +
									"activity_discounts: [{endtime: \"1627315200\",\n" +
														"goods_ids: \"\",\n" +
														"id: \"6\",\n" +
														"richtext_id: \"0\",\n" +
														"richtext_title: \"\",\n" +
														"rules: {type: \"money\", province_except: \"\", city_except: \"\", area_except: \"\", area_text: \"\", full_num: \"300\"},\n" +
														"starttime: \"1623081600\",\n" +
														"status_code: \"ing\",\n" +
														"tag: \"满300元包邮\",\n" +
														"tags: [\"满300元包邮\"],\n" +
														"title: \"测试包邮\",\n" +
														"type: \"free_shipping\"}],\n" +
									"activity_discounts_tags: [\"满300元包邮\"],\n" +
									"activity_discounts_types: \"free_shipping\",\n" +
									"activity_type: \"seckill\",\n" +
									"buyers: [],\n" +
									"category_ids: \"60\",\n" +
									"deletetime: null,\n" +
									"dispatch_ids: \"1\",\n" +
									"dispatch_type: \"express\",\n" +
									"dispatch_type_arr: [\"express\"],\n" +
									"id: 24,\n" +
									"image: \"http://file.shopro.top/uploads/20210519/1814b306eda14764c00b7b40cbec4f90.jpeg\",\n" +
									"is_sku: 1,\n" +
									"likes: 0,\n" +
									"original_price: \"8200.00\",\n" +
									"price: \"320.00\",\n" +
									"sales: 3,\n" +
									"show_sales: 0,\n" +
									"sku_price: [{activity_id: \"20\",\n" +
												"activity_type: \"seckill\",\n" +
												"goods_id: 24,\n" +
												"goods_sku_id_arr: [\"92\"],\n" +
												"goods_sku_ids: \"92\",\n" +
												"goods_sku_text: \"原木色\",\n" +
												"id: 103,\n" +
												"image: \"http://file.shopro.top/uploads/20210519/682f98d4fce303d51789ff1bf9044384.jpeg\",\n" +
												"item_goods_sku_price: {activity_id: 20,\n" +
																		"goods_id: 24,\n" +
																		"id: 74,\n" +
																		"price: \"320.00\",\n" +
																		"sales: \"3\",\n" +
																		"sku_price_id: 103,\n" +
																		"status: \"up\",\n" +
																		"stock: 47},\n" +
												"price: \"320.00\",\n" +
												"sales: \"3\",\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 47,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}," +
												"{activity_id: \"20\",\n" +
												"activity_type: \"seckill\",\n" +
												"goods_id: 24,\n" +
												"goods_sku_id_arr: [\"93\"],\n" +
												"goods_sku_ids: \"93\",\n" +
												"goods_sku_text: \"胡桃色\",\n" +
												"id: 104,\n" +
												"image: \"http://file.shopro.top/uploads/20210519/b06c9f3b60b98e17d8e520104ae7ba80.jpeg\",\n" +
												"item_goods_sku_price: {activity_id: 20,\n" +
																		"goods_id: 24,\n" +
																		"id: 75,\n" +
																		"price: \"0.00\",\n" +
																		"sales: false,\n" +
																		"sku_price_id: 104,\n" +
																		"status: \"down\",\n" +
																		"stock: 0},\n" +
												"price: \"0.00\",\n" +
												"sales: false,\n" +
												"sn: \"\",\n" +
												"status: \"down\",\n" +
												"stock: 0,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}],\n" +
									"stock: 47,\n" +
									"subtitle: \"FAS级橡木 12cm宽大扶手 橡木铺板 带插座\",\n" +
									"title: \"源氏木语全实木沙发橡木现代简约木沙发客厅家具北欧布艺沙发组合\",\n" +
									"total_sales: 60,\n" +
									"type: \"normal\",\n" +
									"views: 4920,\n" +
									"weigh: 0}," +

									"{activity: {endtime: \"1626631740\",\n" +
												"goods_ids: \"29,32,33\",\n" +
												"id: \"13\",\n" +
												"richtext_id: \"4\",\n" +
												"richtext_title: \"拼团说明\",\n" +
												"rules: {activity_auto_close: \"1\",\n" +
														"fictitious_num: \"1\",\n" +
														"is_alone: \"1\",\n" +
														"is_fictitious: \"1\",\n" +
														"limit_buy: \"2\",\n" +
														"order_auto_close: \"360\",\n" +
														"team_card: \"1\",\n" +
														"team_num: \"2\",\n" +
														"valid_time: \"\"},\n" +
												"starttime: \"1626624000\",\n" +
												"status_code: \"waiting\",\n" +
												"title: \"极鲜水产\",\n" +
												"type: \"groupon\"},\n" +
									"activity_discounts: [{endtime: \"1627315200\",\n" +
														"goods_ids: \"\",\n" +
														"id: \"6\",\n" +
														"richtext_id: \"0\",\n" +
														"richtext_title: \"\",\n" +
														"rules: {type: \"money\", province_except: \"\", city_except: \"\", area_except: \"\", area_text: \"\", full_num: \"300\"},\n" +
														"starttime: \"1623081600\",\n" +
														"status_code: \"ing\",\n" +
														"tag: \"满300元包邮\",\n" +
														"tags: [\"满300元包邮\"],\n" +
														"title: \"测试包邮\",\n" +
														"type: \"free_shipping\"}],\n" +
									"activity_discounts_tags: [\"满300元包邮\"],\n" +
									"activity_discounts_types: \"free_shipping\",\n" +
									"activity_type: \"groupon\",\n" +
									"buyers: [],\n" +
									"category_ids: \"62\",\n" +
									"deletetime: null,\n" +
									"dispatch_ids: \"1\",\n" +
									"dispatch_type: \"express\",\n" +
									"dispatch_type_arr: [\"express\"],\n" +
									"groupon_price: \"400.00\",\n" +
									"id: 29,\n" +
									"image: \"http://file.shopro.top/uploads/20210519/6a9b21c6158e9b429f961b810ac0730b.jpg\",\n" +
									"is_sku: 0,\n" +
									"likes: 0,\n" +
									"original_price: \"336.00\",\n" +
									"price: \"536.00\",\n" +
									"sales: 0,\n" +
									"show_sales: 0,\n" +
									"sku_price: [{activity_id: \"13\",\n" +
												"activity_type: \"groupon\",\n" +
												"goods_id: 29,\n" +
												"goods_sku_id_arr: [\"\"],\n" +
												"goods_sku_ids: null,\n" +
												"goods_sku_text: null,\n" +
												"groupon_price: \"400.00\",\n" +
												"id: 110,\n" +
												"image: null,\n" +
												"item_goods_sku_price: {activity_id: 13,\n" +
																		"goods_id: 29,\n" +
																		"id: 52,\n" +
																		"price: \"400.00\",\n" +
																		"sales: false,\n" +
																		"sku_price_id: 110,\n" +
																		"status: \"up\",\n" +
																		"stock: 50},\n" +
												"price: \"536.00\",\n" +
												"sales: false,\n" +
												"sn: \"\",\n" +
												"status: \"up\",\n" +
												"stock: 50,\n" +
												"stock_warning: null,\n" +
												"weigh: 0,\n" +
												"weight: 0}],\n" +
									"stock: 50,\n" +
									"subtitle: \"宫廷加厚加密加粗支架新款\",\n" +
									"title: \"1.8米床公主风蚊帐家用1.5m玉色三开门\",\n" +
									"total_sales: 2,\n" +
									"type: \"normal\",\n" +
									"views: 328,\n" +
									"weigh: 0}],\n" +
							"last_page: 1,\n" +
							"per_page: 10,\n" +
							"total: 5}";
		return JSON.parseObject(goodsStr);
	}

	@Override
	public JSONArray getFloatButton() {
		JSONArray jsonArray = new JSONArray();
		JSONObject jsonObject;
		JSONObject jsonObject1;
		JSONObject jsonObject2;
		JSONArray jsonArray1;
		for (int i = 0; i < 1; i++) {
			jsonObject = new JSONObject();
			jsonObject.put("id", 6187);
			jsonObject.put("category", "float-button");
			jsonObject.put("decorate_id", 1);
			jsonObject.put("name", "悬浮按钮");
			jsonObject.put("type", "float-button");

			jsonObject1 = new JSONObject();
			jsonObject1.put("image", "http://file.shopro.top/uploads/20210518/f6b9c9d20d21df541ac52e9548486e1a.png");
			jsonArray1 = new JSONArray();
			for (int i1 = 0; i1 < 3; i1++) {
				jsonObject2 = new JSONObject();
				jsonObject2.put("btnimage","http://file.shopro.top/uploads/20210522/875dd6d2b1980dbccbec0895f757cdff.png");
				jsonObject2.put("image","http://file.shopro.top/uploads/20210522/ff3fba3ef6a402aa770bde5a60e7f49f.png");
				jsonObject2.put("name","关注");
				jsonObject2.put("path","");
				jsonObject2.put("path_name","");
				jsonObject2.put("path_type",1);
				jsonObject2.put("style",1);
				jsonArray1.add(jsonObject2);
			}
			jsonObject1.put("list", jsonArray1);
			jsonObject.put("content", jsonObject1);
			jsonArray.add(jsonObject);
		}
		return jsonArray;
	}

	@Override
	public JSONArray getHome() {
		JSONArray jsonArray = new JSONArray();
		String homeStr= "[{category: \"home\",\n" +
						"content: {height: 530,\n" +
								"list: [{bgcolor: \"#aaeeb2\",\n" +
										"image: \"http://file.shopro.top/uploads/20210518/919a402e8aabfa0a2100a4215b586286.jpg\",\n" +
										"name: \"\",\n" +
										"path: \"\",\n" +
										"path_name: \"\",\n" +
										"path_type: 1}," +
										"{bgcolor: \"#fa471c\",\n" +
										"image: \"http://file.shopro.top/uploads/20210518/325f29f39b0e6f6762b57d6ffebdbd96.png\",\n" +
										"name: \"\",\n" +
										"path: \"\",\n" +
										"path_name: \"\",\n" +
										"path_type: 1}],\n" +
								"name: \"\",\n" +
								"radius: 0,\n" +
								"style: 1,\n" +
								"x: 0,\n" +
								"y: 0},\n" +
					"decorate_id: 1,\n" +
					"id: 6173,\n" +
					"name: \"轮播图\",\n" +
					"type: \"banner\"}," +

					"{category: \"home\",\n" +
					"content: {height: 100,\n" +
								"list: [{bgcolor: \"#fc3535\",\n" +
										"image: \"https://demo.shopro.top/uploads/20210609/900e4b5f807c11a388446d3c05cfc770.png\",\n" +
										"name: \"\",\n" +
										"path: \"https://shopro.top\",\n" +
										"path_name: \"\",\n" +
										"path_type: 2}],\n" +
								"name: \"\",\n" +
								"radius: 0,\n" +
								"style: 1,\n" +
								"x: 0,\n" +
								"y: 0},\n" +
					"decorate_id: 1,\n" +
					"id: 6174,\n" +
					"name: \"轮播图\",\n" +
					"type: \"banner\"}," +

					"{category: \"home\",\n" +
					"content: {list: [{image: \"http://file.shopro.top/uploads/20210518/ff0ac0abccc81aeaf21e4b3a72a559b3.png\",\n" +
										"name: \"签到有礼\",\n" +
										"path: \"/pages/activity/sign/index\",\n" +
										"path_name: \"签到中心\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/b0099172de352b9670f7c9c3f4344f03.png\",\n" +
										"name: \"品质拼团\",\n" +
										"path: \"/pages/activity/groupon/list\",\n" +
										"path_name: \"今日必拼\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/96c9ad946e9064d652b5f037d1833098.png\",\n" +
										"name: \"限时秒杀\",\n" +
										"path: \"/pages/activity/seckill/list\",\n" +
										"path_name: \"限时秒杀\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/11e836fd1c3cbc5b7e801d32f6f117ad.png\",\n" +
										"name: \"果蔬生鲜\",\n" +
										"path: \"\",\n" +
										"path_name: \"\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/c2b8661af5385285de73c2d440e86ea6.png\",\n" +
										"name: \"美食酒水\",\n" +
										"path: \"/pages/goods/list?id=163\",\n" +
										"path_name: \"商品列表-美食酒水\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/888d4f79ea6ed2c8fc96e46fc460665e.png\",\n" +
										"name: \"居家生活\",\n" +
										"path: \"/pages/goods/list?id=44\",\n" +
										"path_name: \"商品列表-居家生活\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/e8c37399ea5a1359023cdba65cf65124.png\",\n" +
										"name: \"数码电器\",\n" +
										"path: \"/pages/goods/list?id=69\",\n" +
										"path_name: \"商品列表-数码家电\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/498498885d8a83af087b19844d02f6a2.png\",\n" +
										"name: \"亲子母婴\",\n" +
										"path: \"/pages/goods/list?id=71\",\n" +
										"path_name: \"商品列表-亲子母婴\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/71847b70ac0f272a3ad76fed6c185bc5.png\",\n" +
										"name: \"服饰鞋帽\",\n" +
										"path: \"\",\n" +
										"path_name: \"\",\n" +
										"path_type: 1}," +
										"{image: \"http://file.shopro.top/uploads/20210518/ec541a6fa005924376efed6ce4fd0bdd.png\",\n" +
										"name: \"个护清洁\",\n" +
										"path: \"/pages/goods/list?id=72\",\n" +
										"path_name: \"商品列表-个护清洁\",\n" +
										"path_type: 1}],\n" +
								"name: \"\",\n" +
								"style: 5},\n" +
					"decorate_id: 1,\n" +
					"id: 6175,\n" +
					"name: \"菜单组\",\n" +
					"type: \"menu\"}," +

					"{category: \"home\",\n" +
					"content: {bgcolor1: \"#FFC30F\",\n" +
								"bgcolor2: \"#F9AF11\",\n" +
								"color: \"#FFFFFF\",\n" +
								"ids: \"1,2\",\n" +
								"name: \"\",\n" +
								"pricecolor: \"#FFFFFF\",\n" +
								"style: 2},\n" +
					"decorate_id: 1,\n" +
					"id: 6176,\n" +
					"name: \"优惠券\",\n" +
					"type: \"coupons\"}," +

					"{category: \"home\",\n" +
					"content: {groupon_name: \"23123\",\n" +
								"id: 18,\n" +
								"name: \"拼团大优惠\",\n" +
								"style: 2,\n" +
								"team_num: \"2\"},\n" +
					"decorate_id: 1,\n" +
					"id: 6177,\n" +
					"name: \"拼团\",\n" +
					"type: \"groupon\"}," +

					"{category: \"home\",\n" +
					"content: {id: 20,\n" +
								"name: \"限时秒杀\",\n" +
								"seckill_name: \"718秒杀活动\",\n" +
								"style: 1},\n" +
					"decorate_id: 1,\n" +
					"id: 6178,\n" +
					"name: \"秒杀\",\n" +
					"type: \"seckill\"}," +

					"{category: \"home\",\n" +
					"content: {list: [{image: \"http://file.shopro.top/uploads/20210518/d51990f888b1d8449316adb3c234d415.gif\",\n" +
									"name: \"\",\n" +
									"path: \"\",\n" +
									"path_name: \"\",\n" +
									"path_type: 1}],\n" +
								"name: \"\",\n" +
								"style: 1},\n" +
					"decorate_id: 1,\n" +
					"id: 6179,\n" +
					"name: \"广告魔方\",\n" +
					"type: \"adv\"}," +

					"{category: \"home\",\n" +
					"content: {category_arr: [{children: [{children: [{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 75,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/b1621ccc627b56b950cedd127ff9670d.png\",\n" +
																	"name: \"头发护理\",\n" +
																	"pid: 74,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 76,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/58ad6a858055d8856cdcc2c2e5a6f34b.png\",\n" +
																	"name: \"身体护理\",\n" +
																	"pid: 74,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 77,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/fd6c18d2bcc98f9efdb5dc360d21d8f5.png\",\n" +
																	"name: \"口腔护理\",\n" +
																	"pid: 74,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621408286,\n" +
														"description: \"\",\n" +
														"id: 74,\n" +
														"image: \"\",\n" +
														"name: \"个护电器\",\n" +
														"pid: 69,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144061,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 79,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/20d3c8c3fd8d66bfaf2e087503cede1d.png\",\n" +
																	"name: \"车载用品\",\n" +
																	"pid: 78,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 80,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/4ebc26813030ee6870e06c7671973d0d.png\",\n" +
																	"name: \"手机配件\",\n" +
																	"pid: 78,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 81,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/17fe8d63f3e33700a555d42ad4005aaa.png\",\n" +
																	"name: \"3C数码\",\n" +
																	"pid: 78,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621408286,\n" +
														"description: \"\",\n" +
														"id: 78,\n" +
														"image: \"\",\n" +
														"name: \"数码办公\",\n" +
														"pid: 69,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144061,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 83,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/d90a03d7b31787af2173cae27ff0ca71.png\",\n" +
																	"name: \"空气调节\",\n" +
																	"pid: 82,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 84,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/99459989079cab8b6e1de8da20fa8078.png\",\n" +
																	"name: \"衣物护理\",\n" +
																	"pid: 82,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 85,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/1cc8b5c44d6c3d0e136ba4717f1f96f6.png\",\n" +
																	"name: \"清洁电器\",\n" +
																	"pid: 82,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 86,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/b52a0191f1092abc22701185a8ca2b6d.png\",\n" +
																	"name: \"两季电器\",\n" +
																	"pid: 82,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621408286,\n" +
														"description: \"\",\n" +
														"id: 82,\n" +
														"image: \"\",\n" +
														"name: \"生活电器\",\n" +
														"pid: 69,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144061,\n" +
														"weigh: 0}],\n" +
											"createtime: 1621406730,\n" +
											"description: \"舒适生活\",\n" +
											"id: 44,\n" +
											"image: \"http://file.shopro.top/uploads/20210519/b505c4c6c4aefdb3467877f2ef21c534.jpeg\",\n" +
											"name: \"居家生活\",\n" +
											"pid: 43,\n" +
											"status: \"normal\",\n" +
											"type: \"\",\n" +
											"updatetime: 1623144061,\n" +
											"weigh: 0}," +

											"{children: [{children: [{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 75,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/b1621ccc627b56b950cedd127ff9670d.png\",\n" +
																	"name: \"头发护理\",\n" +
																	"pid: 74,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 76,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/58ad6a858055d8856cdcc2c2e5a6f34b.png\",\n" +
																	"name: \"身体护理\",\n" +
																	"pid: 74,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 77,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/fd6c18d2bcc98f9efdb5dc360d21d8f5.png\",\n" +
																	"name: \"口腔护理\",\n" +
																	"pid: 74,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621408286,\n" +
														"description: \"\",\n" +
														"id: 74,\n" +
														"image: \"\",\n" +
														"name: \"个护电器\",\n" +
														"pid: 69,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144061,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 79,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/20d3c8c3fd8d66bfaf2e087503cede1d.png\",\n" +
																	"name: \"车载用品\",\n" +
																	"pid: 78,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 80,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/4ebc26813030ee6870e06c7671973d0d.png\",\n" +
																	"name: \"手机配件\",\n" +
																	"pid: 78,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 81,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/17fe8d63f3e33700a555d42ad4005aaa.png\",\n" +
																	"name: \"3C数码\",\n" +
																	"pid: 78,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621408286,\n" +
														"description: \"\",\n" +
														"id: 78,\n" +
														"image: \"\",\n" +
														"name: \"数码办公\",\n" +
														"pid: 69,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144061,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 83,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/d90a03d7b31787af2173cae27ff0ca71.png\",\n" +
																	"name: \"空气调节\",\n" +
																	"pid: 82,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 84,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/99459989079cab8b6e1de8da20fa8078.png\",\n" +
																	"name: \"衣物护理\",\n" +
																	"pid: 82,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 85,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/1cc8b5c44d6c3d0e136ba4717f1f96f6.png\",\n" +
																	"name: \"清洁电器\",\n" +
																	"pid: 82,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 86,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/b52a0191f1092abc22701185a8ca2b6d.png\",\n" +
																	"name: \"两季电器\",\n" +
																	"pid: 82,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621408286,\n" +
														"description: \"\",\n" +
														"id: 82,\n" +
														"image: \"\",\n" +
														"name: \"生活电器\",\n" +
														"pid: 69,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144061,\n" +
														"weigh: 0}],\n" +
											"createtime: 1621407282,\n" +
											"description: \"科技生活\",\n" +
											"id: 69,\n" +
											"image: \"http://file.shopro.top/uploads/20210519/b330cd09cd55c038c1743aef21545241.png\",\n" +
											"name: \"数码家电\",\n" +
											"pid: 43,\n" +
											"status: \"normal\",\n" +
											"type: \"\",\n" +
											"updatetime: 1623144061,\n" +
											"weigh: 0}," +

											"{children: [{children: [{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 88,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/f1220b340e780b2ff00f54127cf751b0.png\",\n" +
																	"name: \"瑜伽美体\",\n" +
																	"pid: 87,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 89,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/ccfd1de922f35e721b56baf680279330.png\",\n" +
																	"name: \"按摩护具\",\n" +
																	"pid: 87,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408286,\n" +
																	"weigh: 0}],\n" +
																	"createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 87,\n" +
																	"image: \"\",\n" +
																	"name: \"运动健身\",\n" +
																	"pid: 70,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1623144061,\n" +
																	"weigh: 0}," +
																	"{children: [{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 91,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/3b9a6bc539c0050bbeb4d4c859b2e71d.png\",\n" +
																				"name: \"女士运动鞋\",\n" +
																				"pid: 90,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 92,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/2fb83b8cae4f3566df54bb4e766d02f5.png\",\n" +
																				"name: \"女士运动内衣/泳装\",\n" +
																				"pid: 90,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 93,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/598c06df8cc64a6927ecf3a68c12005a.png\",\n" +
																				"name: \"女士运动T恤\",\n" +
																				"pid: 90,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 94,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/6f7365b7982b658790cf505f6c1c50d2.png\",\n" +
																				"name: \"女士户外服装\",\n" +
																				"pid: 90,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 95,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/76e48d40c43fe2ba0ebbd0118cfe51a3.png\",\n" +
																				"name: \"女士运动裤装\",\n" +
																				"pid: 90,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 96,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/5ddb25444b3baa0b14b22ab4ea92fd06.png\",\n" +
																				"name: \"女士运动外套/卫衣\",\n" +
																				"pid: 90,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}],\n" +
																	"createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 90,\n" +
																	"image: \"\",\n" +
																	"name: \"女子运动\",\n" +
																	"pid: 70,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1623144062,\n" +
																	"weigh: 0}," +
																	"{children: [{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 98,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/22de478fafea0dd85b2dd2183578ad92.png\",\n" +
																				"name: \"男士运动鞋\",\n" +
																				"pid: 97,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 99,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/3f6dce5eed0586c86f07aa4abf060558.png\",\n" +
																				"name: \"男士运动T恤\",\n" +
																				"pid: 97,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 100,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/9ad4a70998bc4ef2c1eafe7debb7d769.png\",\n" +
																				"name: \"男士户外服装\",\n" +
																				"pid: 97,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 101,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/9536e3e327f1a66513367c1282522e6a.png\",\n" +
																				"name: \"男士运动裤装\",\n" +
																				"pid: 97,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}," +
																				"{createtime: 1621408286,\n" +
																				"description: \"\",\n" +
																				"id: 102,\n" +
																				"image: \"http://file.shopro.top/uploads/20210519/a21cdca293151bd1c36af393d251424a.png\",\n" +
																				"name: \"男士运动外套/卫衣\",\n" +
																				"pid: 97,\n" +
																				"status: \"normal\",\n" +
																				"type: \"\",\n" +
																				"updatetime: 1621408286,\n" +
																				"weigh: 0}],\n" +
																	"createtime: 1621408286,\n" +
																	"description: \"\",\n" +
																	"id: 97,\n" +
																	"image: \"\",\n" +
																	"name: \"男子运动\",\n" +
																	"pid: 70,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1623144062,\n" +
																	"weigh: 0}],\n" +
											"createtime: 1621407282,\n" +
											"description: \"生活美好\",\n" +
											"id: 70,\n" +
											"image: \"http://file.shopro.top/uploads/20210519/225422d99ca344883fc5a1a52a6f2ad5.png\",\n" +
											"name: \"运动旅行\",\n" +
											"pid: 43,\n" +
											"status: \"normal\",\n" +
											"type: \"\",\n" +
											"updatetime: 1623144061,\n" +
											"weigh: 0}," +

											"{children: [{children: [{createtime: 1621408757,\n" +
																	"description: \"\",\n" +
																	"id: 104,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/125d48b497de8bce7e7febc4dac75696.png\",\n" +
																	"name: \"图书\",\n" +
																	"pid: 103,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408757,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408757,\n" +
																	"description: \"\",\n" +
																	"id: 105,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/5447e331c98cdd480ada05313009183a.png\",\n" +
																	"name: \"文具\",\n" +
																	"pid: 103,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408757,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621408757,\n" +
																	"description: \"\",\n" +
																	"id: 106,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/d8957062909571aaff1bbc213f39e1b9.png\",\n" +
																	"name: \"玩具\",\n" +
																	"pid: 103,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621408757,\n" +
																	"weigh: 0}],\n" +
															"createtime: 1621408757,\n" +
															"description: \"\",\n" +
															"id: 103,\n" +
															"image: \"\",\n" +
															"name: \"玩具图书\",\n" +
															"pid: 71,\n" +
															"status: \"normal\",\n" +
															"type: \"\",\n" +
															"updatetime: 1623144062,\n" +
															"weigh: 0}," +
															"{children: [{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 108,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/6262e491bb4ea126faf827a9088eb559.png\",\n" +
																		"name: \"喂养\",\n" +
																		"pid: 107,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}," +
																		"{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 109,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/210c7ee394f1dd07f0664ed619831cee.png\",\n" +
																		"name: \"洗护\",\n" +
																		"pid: 107,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}," +
																		"{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 110,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/87900549416a72ee49840d2162279ef9.png\",\n" +
																		"name: \"尿裤纸品\",\n" +
																		"pid: 107,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}],\n" +
															"createtime: 1621408757,\n" +
															"description: \"\",\n" +
															"id: 107,\n" +
															"image: \"\",\n" +
															"name: \"洗护喂养\",\n" +
															"pid: 71,\n" +
															"status: \"normal\",\n" +
															"type: \"\",\n" +
															"updatetime: 1623144062,\n" +
															"weigh: 0}," +
															"{children: [{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 112,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/7ae6ac376930ae33be3be5e525a4997d.png\",\n" +
																		"name: \"学步鞋\",\n" +
																		"pid: 111,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}," +
																		"{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 113,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/e5069eb86f34ad29a9ea6e2e4f3278b0.png\",\n" +
																		"name: \"儿童鞋\",\n" +
																		"pid: 111,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}],\n" +
															"createtime: 1621408757,\n" +
															"description: \"\",\n" +
															"id: 111,\n" +
															"image: \"\",\n" +
															"name: \"童鞋\",\n" +
															"pid: 71,\n" +
															"status: \"normal\",\n" +
															"type: \"\",\n" +
															"updatetime: 1623144062,\n" +
															"weigh: 0}," +
															"{children: [{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 115,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/55edea5dc20a0888a2de713cb496717f.png\",\n" +
																		"name: \"内衣/配搭\",\n" +
																		"pid: 114,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}," +
																		"{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 116,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/896a113bc7af9a5ba765dd0cd42decf9.png\",\n" +
																		"name: \"连体衣/礼盒\",\n" +
																		"pid: 114,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}," +
																		"{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 117,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/caa7b8e17dabf96d2b97738f5013cc21.png\",\n" +
																		"name: \"外套/套装\",\n" +
																		"pid: 114,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}," +
																		"{createtime: 1621408757,\n" +
																		"description: \"\",\n" +
																		"id: 118,\n" +
																		"image: \"http://file.shopro.top/uploads/20210519/f85c23f234d67e40cb2848c7c5e422e9.png\",\n" +
																		"name: \"卫衣/毛衫\",\n" +
																		"pid: 114,\n" +
																		"status: \"normal\",\n" +
																		"type: \"\",\n" +
																		"updatetime: 1621408757,\n" +
																		"weigh: 0}],\n" +
															"createtime: 1621408757,\n" +
															"description: \"\",\n" +
															"id: 114,\n" +
															"image: \"\",\n" +
															"name: \"童装\",\n" +
															"pid: 71,\n" +
															"status: \"normal\",\n" +
															"type: \"\",\n" +
															"updatetime: 1623144062,\n" +
															"weigh: 0}],\n" +
											"createtime: 1621407282,\n" +
											"description: \"育儿天堂\",\n" +
											"id: 71,\n" +
											"image: \"http://file.shopro.top/uploads/20210519/05ecdfeaee42cefa15834966a09a6bb9.png\",\n" +
											"name: \"亲子母婴\",\n" +
											"pid: 43,\n" +
											"status: \"normal\",\n" +
											"type: \"\",\n" +
											"updatetime: 1623144062,\n" +
											"weigh: 0}," +

											"{children: [{children: [{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 120,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/f3a5185b18c56d48a7aa2c5b392dcb16.png\",\n" +
																	"name: \"美妆工具\",\n" +
																	"pid: 119,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 121,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/6448fdf8d73ac95cb83eacb35d01dc1e.png\",\n" +
																	"name: \"香水香氛\",\n" +
																	"pid: 119,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 122,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/f830c911ead7a24d38e45ebd54da0b0f.png\",\n" +
																	"name: \"彩妆修容\",\n" +
																	"pid: 119,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409206,\n" +
														"description: \"\",\n" +
														"id: 119,\n" +
														"image: \"\",\n" +
														"name: \"彩妆香水\",\n" +
														"pid: 72,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 124,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/c1a7752d7a840fc92f3972c0cf6d720a.png\",\n" +
																	"name: \"女性护理\",\n" +
																	"pid: 123,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 125,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/295d569d562beb7623f5897d3405e4fb.png\",\n" +
																	"name: \"口腔护理\",\n" +
																	"pid: 123,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 126,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/8f3f39bd122b926e168db31e65b33de9.png\",\n" +
																	"name: \"身体护理\",\n" +
																	"pid: 123,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 127,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/93e2d689cff40f40a9fdecccf0d1e906.png\",\n" +
																	"name: \"洗发护发\",\n" +
																	"pid: 123,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409206,\n" +
														"description: \"\",\n" +
														"id: 123,\n" +
														"image: \"\",\n" +
														"name: \"个人护理\",\n" +
														"pid: 72,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 129,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/1391b0998e6e3226b156d67a3d23e869.png\",\n" +
																	"name: \"护肤工具\",\n" +
																	"pid: 128,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 130,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/d85e0d073a65011d047bedd7edb4b7e9.png\",\n" +
																	"name: \"卸妆洁面\",\n" +
																	"pid: 128,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409206,\n" +
																	"description: \"\",\n" +
																	"id: 131,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/347674f375179016e010ea186d6b1cbb.png\",\n" +
																	"name: \"基础护肤\",\n" +
																	"pid: 128,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409206,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409206,\n" +
														"description: \"\",\n" +
														"id: 128,\n" +
														"image: \"\",\n" +
														"name: \"面部护理\",\n" +
														"pid: 72,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}],\n" +
											"createtime: 1621407282,\n" +
											"description: \"更美丽\",\n" +
											"id: 72,\n" +
											"image: \"http://file.shopro.top/uploads/20210519/ea0eef9b5e58af66347cfd8fa5d5e308.png\",\n" +
											"name: \"个护清洁\",\n" +
											"pid: 43,\n" +
											"status: \"normal\",\n" +
											"type: \"\",\n" +
											"updatetime: 1623144062,\n" +
											"weigh: 0}," +

											"{children: [{children: [{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 145,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/09cb8ccd7257759bd4d6b8c9d7108ced.png\",\n" +
																	"name: \"行李箱\",\n" +
																	"pid: 144,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 146,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/4e4129fcdae5ffdbfcd38bd804d9f4b3.png\",\n" +
																	"name: \"钱包及小皮件\",\n" +
																	"pid: 144,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 147,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/11e467ccfee62a802b9dd520b5bc4b10.png\",\n" +
																	"name: \"女士包袋\",\n" +
																	"pid: 144,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 148,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/02a10cd84196c1dd059a4d107add889a.png\",\n" +
																	"name: \"男士包袋\",\n" +
																	"pid: 144,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409861,\n" +
														"description: \"\",\n" +
														"id: 144,\n" +
														"image: \"\",\n" +
														"name: \"箱包\",\n" +
														"pid: 73,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 150,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/4d7c5428d8b39000a1a07b9cffcb1fc8.png\",\n" +
																	"name: \"鞋配\",\n" +
																	"pid: 149,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 151,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/f0f4c0e2cec6cb326312b42f045a20fc.png\",\n" +
																	"name: \"拖鞋\",\n" +
																	"pid: 149,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 152,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/0aceb062c4bbf75ebe59aff542871b0c.png\",\n" +
																	"name: \"女鞋\",\n" +
																	"pid: 149,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 153,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/c7c11ea39df1c16fe9c098e0243bfd25.png\",\n" +
																	"name: \"男鞋\",\n" +
																	"pid: 149,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409861,\n" +
														"description: \"\",\n" +
														"id: 149,\n" +
														"image: \"\",\n" +
														"name: \"鞋靴\",\n" +
														"pid: 73,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 155,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/bdfb38417cb9058be3a89c6b8c8ee2c6.png\",\n" +
																	"name: \"女士外套\",\n" +
																	"pid: 154,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 156,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/02be3efee5d0ad3690d012241e4f786e.jpeg\",\n" +
																	"name: \"女式衬衫\",\n" +
																	"pid: 154,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 157,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/4285eb455cf4ba396985b60db99b2952.png\",\n" +
																	"name: \"女士裙装\",\n" +
																	"pid: 154,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409861,\n" +
														"description: \"\",\n" +
														"id: 154,\n" +
														"image: \"\",\n" +
														"name: \"女装\",\n" +
														"pid: 73,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 159,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/b9fe1efe2b26eb0f060a26bae677d30d.jpeg\",\n" +
																	"name: \"男士裤装\",\n" +
																	"pid: 158,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 160,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/13f08a3efeeb2b91890efdc4e096ab61.jpeg\",\n" +
																	"name: \"男士卫衣\",\n" +
																	"pid: 158,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 161,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/80749ed38259d70d2347a9d3157421bd.png\",\n" +
																	"name: \"男士衬衫\",\n" +
																	"pid: 158,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 162,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/33aebe2cedf450ac6d0bbde0034635d3.png\",\n" +
																	"name: \"男士外套\",\n" +
																	"pid: 158,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621409861,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409861,\n" +
														"description: \"\",\n" +
														"id: 158,\n" +
														"image: \"\",\n" +
														"name: \"男装\",\n" +
														"pid: 73,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}],\n" +
											"createtime: 1621407282,\n" +
											"description: \"爱自己\",\n" +
											"id: 73,\n" +
											"image: \"http://file.shopro.top/uploads/20210519/cbe5177c5c987ec72830fa936307b751.png\",\n" +
											"name: \"服饰鞋包\",\n" +
											"pid: 43,\n" +
											"status: \"normal\",\n" +
											"type: \"\",\n" +
											"updatetime: 1623144062,\n" +
											"weigh: 0}," +

											"{children: [{children: [{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 133,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/f060309dab2f030b5a366e954d635b3e.jpg\",\n" +
																	"name: \"茗茶礼盒\",\n" +
																	"pid: 132,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621410363,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 134,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/9c3428b7c70c48905aa5854ae58096d5.jpg\",\n" +
																	"name: \"传统茗茶\",\n" +
																	"pid: 132,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621410363,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 135,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/1ef84eb6a39a7eb39c03e9030e6eea54.jpg\",\n" +
																	"name: \"冲调饮品\",\n" +
																	"pid: 132,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621410363,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409861,\n" +
														"description: \"\",\n" +
														"id: 132,\n" +
														"image: \"\",\n" +
														"name: \"冲饮茗茶\",\n" +
														"pid: 163,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 138,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/863bef09f67e3d2a6d5c8ae893657722.jpg\",\n" +
																	"name: \"酒类\",\n" +
																	"pid: 136,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621410363,\n" +
																	"weigh: 0}," +
																	"{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 139,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/21de523d444d19d8c0fdd7dddf47a027.jpg\",\n" +
																	"name: \"乳品饮料\",\n" +
																	"pid: 136,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621410363,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409861,\n" +
														"description: \"\",\n" +
														"id: 136,\n" +
														"image: \"\",\n" +
														"name: \"酒水饮料\",\n" +
														"pid: 163,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}," +
														"{children: [{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 141,\n" +
																	"image: \"http://file.shopro.top/uploads/20210524/0d695ae5d0b293199882794eb68877f8.jpeg\",\n" +
																	"name: \"肉类零食\",\n" +
																	"pid: 140,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621851149,\n" +
																	"weigh: 0},{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 142,\n" +
																	"image: \"http://file.shopro.top/uploads/20210524/b4e2e18b2ce2fd9416ce98ec42d153af.jpeg\",\n" +
																	"name: \"小食糖巧\",\n" +
																	"pid: 140,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621851149,\n" +
																	"weigh: 0},{createtime: 1621409861,\n" +
																	"description: \"\",\n" +
																	"id: 143,\n" +
																	"image: \"http://file.shopro.top/uploads/20210524/11d74c2d72cf3064977e495f3cc17058.jpeg\",,\n" +
																	"name: \"饼干糕点\",\n" +
																	"pid: 140,\n" +
																	"status: \"normal\",\n" +
																	"type: \"\",\n" +
																	"updatetime: 1621851149,\n" +
																	"weigh: 0}],\n" +
														"createtime: 1621409861,\n" +
														"description: \"\",\n" +
														"id: 140,\n" +
														"image: \"\",\n" +
														"name: \"休闲零食\",\n" +
														"pid: 163,\n" +
														"status: \"normal\",\n" +
														"type: \"\",\n" +
														"updatetime: 1623144062,\n" +
														"weigh: 0}],\n" +
											"createtime: 1621850612,\n" +
											"description: \"享受人生\",\n" +
											"id: 163,\n" +
											"image: \"http://file.shopro.top/uploads/20210524/c391f225123eb7addd5e971cc2b5d345.png\",\n" +
											"name: \"美食酒水\",\n" +
											"pid: 43,\n" +
											"status: \"normal\",\n" +
											"type: \"\",\n" +
											"updatetime: 1623144062,\n" +
											"weigh: 0}],\n" +
								"ids: \"44,69,70,71,72,73,163\",\n" +
								"style: 1},\n" +
					"decorate_id: 1,\n" +
					"id: 6180,\n" +
					"name: \"分类选项卡\",\n" +
					"type: \"category-tabs\"}]";
		return JSON.parseArray(homeStr);
	}

	@Override
	public JSONArray getPopup() {
		String popupStr = "[{category: \"popup\",\n" +
							"content: {list: [{btnimage: \"\",\n" +
											"image: \"http://file.shopro.top/uploads/20210518/9136ecddcddf6607184fab689207e7e3.png\",\n" +
											"name: \"\",\n" +
											"path: \"/pages/app/coupon/list\",\n" +
											"path_name: \"优惠券中心\",\n" +
											"path_type: 1,\n" +
											"style: 1}]},\n" +
							"decorate_id: 1,\n" +
							"id: 6181,\n" +
							"name: \"弹窗提醒\",\n" +
							"type: \"popup\"}]";
		return JSON.parseArray(popupStr);
	}

	@Override
	public JSONArray getTabbar() {
		String tabbarStr = "[{category: \"tabbar\",\n" +
							"content: {activeColor: \"#999\",\n" +
										"bgcolor: \"#fff\",\n" +
										"color: \"#000\",\n" +
										"isshow: true,\n" +
										"list: [{activeImage: \"http://file.shopro.top/uploads/20210527/558feb98726495d17128d07694d7ff47.png\",\n" +
												"image: \"http://file.shopro.top/uploads/20210527/c4591c74c27a49bda021257d3c889225.png\",\n" +
												"name: \"首页\",\n" +
												"path: \"/pages/index/index\",\n" +
												"path_name: \"首页\",\n" +
												"path_type: 1}," +
												"{activeImage: \"http://file.shopro.top/uploads/20210527/f280b7f9ea18db0c80337d1c1cac6075.png\",\n" +
												"image: \"http://file.shopro.top/uploads/20210527/d6e987bb27013691478ddce7ce700288.png\",\n" +
												"name: \"分类\",\n" +
												"path: \"/pages/index/category?id=43\",\n" +
												"path_name: \"分类-商品分类\",\n" +
												"path_type: 1}," +
												"{activeImage: \"http://file.shopro.top/uploads/20210527/5273d6e90fb45e3d9189fba9fcbea47c.png\",\n" +
												"image: \"http://file.shopro.top/uploads/20210527/0ab4659f44404d6d4723c265ccd21f94.png\",\n" +
												"name: \"购物车\",\n" +
												"path: \"/pages/index/cart\",\n" +
												"path_name: \"购物车\",\n" +
												"path_type: 1}," +
												"{activeImage: \"http://file.shopro.top/uploads/20210527/8eca666cc43686d292113244b31e0664.png\",\n" +
												"image: \"http://file.shopro.top/uploads/20210527/406848d5827325fead27224decffd141.png\",\n" +
												"name: \"我的\",\n" +
												"path: \"/pages/index/user\",\n" +
												"path_name: \"我的\",\n" +
												"path_type: 1}],\n" +
										"style: 1},\n" +
							"decorate_id: 1,\n" +
							"id: 6182,\n" +
							"name: \"底部导航\",\n" +
							"type: \"tabbar\"}]";
		return JSON.parseArray(tabbarStr);
	}

	@Override
	public JSONArray getUser() {
		String userStr = "[{category: \"user\",\n" +
							"content: {color: \"#eeeeee\",\n" +
										"image: \"http://file.shopro.top/uploads/20210522/c4e353836a5d04e92697d22f95d0c5a5.png\",\n" +
										"name: \"用户卡片\",\n" +
										"style: 2},\n" +
							"decorate_id: 1,\n" +
							"id: 6183,\n" +
							"name: \"用户卡片\",\n" +
							"type: \"user\"}," +
							"{category: \"user\",\n" +
							"content: [],\n" +
							"decorate_id: 1,\n" +
							"id: 6184,\n" +
							"name: \"订单卡片\",\n" +
							"type: \"order-card\"}," +
							"{category: \"user\",\n" +
							"content: [],\n" +
							"decorate_id: 1,\n" +
							"id: 6185,\n" +
							"name: \"资产卡片\",\n" +
							"type: \"wallet-card\"}," +
							"{category: \"user\",\n" +
							"content: {name: \"\", list: [{image: \"http://file.shopro.top/uploads/20210518/b726f027bd679f0f5a36c6e301430790.png\",\n" +
															"name: \"商品收藏\",\n" +
															"path: \"/pages/user/favorite\",\n" +
															"path_name: \"我的收藏\",\n" +
															"path_type: 1}," +
															"{image: \"http://file.shopro.top/uploads/20210518/d4e05c1560722ec63fde08e3217d3296.png\",\n" +
															"name: \"浏览足迹\",\n" +
															"path: \"/pages/user/view-log\",\n" +
															"path_name: \"浏览足迹\",\n" +
															"path_type: 1}," +
															"{image: \"http://file.shopro.top/uploads/20210518/234139fd11f6f8451e4c517f256c6b45.png\",\n" +
															"name: \"积分商城\",\n" +
															"path: \"/pages/app/score/list\",\n" +
															"path_name: \"积分商品\",\n" +
															"path_type: 1}," +
															"{image: \"http://file.shopro.top/uploads/20210518/5d53a6e7f940c5ef925f63c1810c8429.png\",\n" +
															"name: \"我的拼团\",\n" +
															"path: \"/pages/activity/groupon/my-groupon\",\n" +
															"path_name: \"我的拼团\",\n" +
															"path_type: 1}," +
															"{image: \"http://file.shopro.top/uploads/20210518/555ef0a1151e83014610b288e53827c2.png\",\n" +
															"name: \"常见问题\",\n" +
															"path: \"/pages/public/faq\",\n" +
															"path_name: \"常见问题\",\n" +
															"path_type: 1}," +
															"{image: \"http://file.shopro.top/uploads/20210518/9ac9ef6f9df49f89ace437c53a76adca.png\",\n" +
															"name: \"系统设置\",\n" +
															"path: \"/pages/user/set\",\n" +
															"path_name: \"系统设置\",\n" +
															"path_type: 1}," +
															"{image: \"http://file.shopro.top/uploads/20210518/a470b691a09eec29d56e0a55b02f70e0.png\",\n" +
															"name: \"分销中心\",\n" +
															"path: \"/pages/app/commission/index\",\n" +
															"path_name: \"分销中心\",\n" +
															"path_type: 1}," +
															"{image: \"https://demo.shopro.top/uploads/20210618/643f17743afc2524635ad5e0b7734426.png\",\n" +
															"name: \"申请团长\",\n" +
															"path: \"/pages/app/merchant/apply\",\n" +
															"path_name: \"门店入驻\",\n" +
															"path_type: 1}]},\n" +
							"decorate_id: 1,\n" +
							"id: 6186,\n" +
							"name: \"宫格列表\",\n" +
							"type: \"grid-list\"}]";
		return JSON.parseArray(userStr);
	}

	// 秒杀
	@Override
	public JSONObject getGoodsActivity1(String activity_id) {
		String goodsActivityStr = "{endtime: 1628870400,\n" +
									"goods: {current_page: 1,\n" +
											"data: [{activity: {endtime: \"1628870400\",\n" +
																"goods_ids: \"20\",\n" +
																"id: \"18\",\n" +
																"richtext_id: \"4\",\n" +
																"richtext_title: \"拼团说明\",\n" +
																"rules: {activity_auto_close: \"\",\n" +
																		"fictitious_num: \"\",\n" +
																		"is_alone: \"1\",\n" +
																		"is_fictitious: \"0\",\n" +
																		"limit_buy: \"\",\n" +
																		"order_auto_close: \"\",\n" +
																		"team_card: \"1\",\n" +
																		"team_num: \"2\",\n" +
																		"valid_time: \"\"},\n" +
																"starttime: \"1625414400\",\n" +
																"status_code: \"ing\",\n" +
																"title: \"23123\",\n" +
																"type: \"groupon\"},\n" +
													"activity_discounts: [{endtime: \"1627315200\",\n" +
																			"goods_ids: \"\",\n" +
																			"id: \"6\",\n" +
																			"richtext_id: \"0\",\n" +
																			"richtext_title: \"\",\n" +
																			"rules: {type: \"money\", province_except: \"\", city_except: \"\", area_except: \"\", area_text: \"\", full_num: \"300\"},\n" +
																			"starttime: \"1623081600\",\n" +
																			"status_code: \"ing\",\n" +
																			"tag: \"满300元包邮\",\n" +
																			"tags: [\"满300元包邮\"],\n" +
																			"title: \"测试包邮\",\n" +
																			"type: \"free_shipping\"}],\n" +
													"activity_discounts_tags: [\"满300元包邮\"],\n" +
													"activity_discounts_types: \"free_shipping\",\n" +
													"activity_type: \"groupon\",\n" +
													"buyers: [{avatar: \"http://file.shopro.top/uploads/20200410/default-avatar.png\",\n" +
															"id: 3777,\n" +
															"nickname: \"Shopro-3777\",\n" +
															"nickname_hide: \"Sh***\"}," +
															"{avatar: \"https://thirdwx.qlogo.cn/mmopen/vi_32/fMOJIicjUO5PfY4DdrsbFKD7vwcV7kmTWSkiapib2yeZ6O941dcCicY9YH4JQ5aR0MrDk6hiaId36LibZVTuy6a0ZnEA/132\",\n" +
															"id: 3803,\n" +
															"nickname: \"程序猿丶军\",\n" +
															"nickname_hide: \"程序***\"}," +
															"{avatar: \"https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI8BgmPoLu6AjKXSuC7EgP8AwGIpaUvjzWe9uf1iaKTkMyiaK66h4Iob1ibTgPQ0ALc274IuIRPwQVMg/132\",\n" +
															"id: 3833,\n" +
															"nickname: \"APTX4869\",\n" +
															"nickname_hide: \"AP***\"}],\n" +
													"category_ids: \"157\",\n" +
													"deletetime: null,\n" +
													"dispatch_ids: \"1\",\n" +
													"dispatch_type: \"express\",\n" +
													"dispatch_type_arr: [\"express\"],\n" +
													"groupon_price: \"189.00\",\n" +
													"id: 20,\n" +
													"image: \"http://file.shopro.top/uploads/20210519/3327f635ab3384d526fc8c3159c839e9.jpeg\",\n" +
													"is_sku: 1,\n" +
													"likes: 0,\n" +
													"original_price: \"200.00\",\n" +
													"price: \"189.00\",\n" +
													"sales: 10,\n" +
													"show_sales: 4445,\n" +
													"sku_price: [{activity_id: \"18\",\n" +
																	"activity_type: \"groupon\",\n" +
																	"goods_id: 20,\n" +
																	"goods_sku_id_arr: [\"76\"],\n" +
																	"goods_sku_ids: \"76\",\n" +
																	"goods_sku_text: \"S\",\n" +
																	"groupon_price: \"189.00\",\n" +
																	"id: 88,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/3327f635ab3384d526fc8c3159c839e9.jpeg\",\n" +
																	"item_goods_sku_price: {activity_id: 18,\n" +
																							"goods_id: 20,\n" +
																							"id: 62,\n" +
																							"price: \"189.00\",\n" +
																							"sales: \"10\",\n" +
																							"sku_price_id: 88,\n" +
																							"status: \"up\",\n" +
																							"stock: 1},\n" +
																	"price: \"189.00\",\n" +
																	"sales: \"10\",\n" +
																	"sn: \"\",\n" +
																	"status: \"up\",\n" +
																	"stock: 1,\n" +
																	"stock_warning: null,\n" +
																	"weigh: 0,\n" +
																	"weight: 0}," +
																	"{activity_id: \"18\",\n" +
																	"activity_type: \"groupon\",\n" +
																	"goods_id: 20,\n" +
																	"goods_sku_id_arr: [\"77\"],\n" +
																	"goods_sku_ids: \"77\",\n" +
																	"goods_sku_text: \"M\",\n" +
																	"groupon_price: \"0.00\",\n" +
																	"id: 89,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/3327f635ab3384d526fc8c3159c839e9.jpeg\",\n" +
																	"item_goods_sku_price: {activity_id: 18,\n" +
																							"goods_id: 20,\n" +
																							"id: 63,\n" +
																							"price: \"0.00\",\n" +
																							"sales: false,\n" +
																							"sku_price_id: 89,\n" +
																							"status: \"down\",\n" +
																							"stock: 0},\n" +
																	"price: \"189.00\",\n" +
																	"sales: false,\n" +
																	"sn: \"\",\n" +
																	"status: \"down\",\n" +
																	"stock: 0,\n" +
																	"stock_warning: null,\n" +
																	"weigh: 0,\n" +
																	"weight: 0}," +
																	"{activity_id: \"18\",\n" +
																	"activity_type: \"groupon\",\n" +
																	"goods_id: 20,\n" +
																	"goods_sku_id_arr: [\"78\"],\n" +
																	"goods_sku_ids: \"78\",\n" +
																	"goods_sku_text: \"L\",\n" +
																	"groupon_price: \"0.00\",\n" +
																	"id: 90,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/3327f635ab3384d526fc8c3159c839e9.jpeg\",\n" +
																	"item_goods_sku_price: {activity_id: 18,\n" +
																							"goods_id: 20,\n" +
																							"id: 64,\n" +
																							"price: \"0.00\",\n" +
																							"sales: false,\n" +
																							"sku_price_id: 90,\n" +
																							"status: \"down\",\n" +
																							"stock: 0},\n" +
																	"price: \"189.00\",\n" +
																	"sales: false,\n" +
																	"sn: \"\",\n" +
																	"status: \"down\",\n" +
																	"stock: 0,\n" +
																	"stock_warning: null,\n" +
																	"weigh: 0,\n" +
																	"weight: 0}," +
																	"{activity_id: \"18\",\n" +
																	"activity_type: \"groupon\",\n" +
																	"goods_id: 20,\n" +
																	"goods_sku_id_arr: [\"79\"],\n" +
																	"goods_sku_ids: \"79\",\n" +
																	"goods_sku_text: \"XL\",\n" +
																	"groupon_price: \"0.00\",\n" +
																	"id: 91,\n" +
																	"image: \"http://file.shopro.top/uploads/20210519/3327f635ab3384d526fc8c3159c839e9.jpeg\",\n" +
																	"item_goods_sku_price: {activity_id: 18,\n" +
																							"goods_id: 20,\n" +
																							"id: 65,\n" +
																							"price: \"0.00\",\n" +
																							"sales: false,\n" +
																							"sku_price_id: 91,\n" +
																							"status: \"down\",\n" +
																							"stock: 0},\n" +
																	"price: \"189.00\",\n" +
																	"sales: false,\n" +
																	"sn: \"\",\n" +
																	"status: \"down\",\n" +
																	"stock: 0,\n" +
																	"stock_warning: null,\n" +
																	"weigh: 0,\n" +
																	"weight: 0}],\n" +
													"stock: 1,\n" +
													"subtitle: \"正品保证 放心购 \",\n" +
													"title: \"白色雪纺连衣裙20新款女夏季流行女士收腰气质超仙女甜美长裙子 白色 M\",\n" +
													"total_sales: 4455,\n" +
													"type: \"normal\",\n" +
													"views: 44693,\n" +
													"weigh: 0}],\n" +
											"last_page: 1,\n" +
											"per_page: 10,\n" +
											"total: 1},\n" +
									"id: 18,\n" +
									"richtext_id: 4,\n" +
									"richtext_title: \"拼团说明\",\n" +
									"rules: {activity_auto_close: \"\",\n" +
											"fictitious_num: \"\",\n" +
											"is_alone: \"1\",\n" +
											"is_fictitious: \"0\",\n" +
											"limit_buy: \"\",\n" +
											"order_auto_close: \"\",\n" +
											"team_card: \"1\",\n" +
											"team_num: \"2\",\n" +
											"valid_time: \"\"},\n" +
									"starttime: 1625414400,\n" +
									"status_code: \"ing\",\n" +
									"title: \"23123\",\n" +
									"type: \"groupon\"}";
		return JSON.parseObject(goodsActivityStr);

	}

	// 拼团
	@Override
	public JSONObject getGoodsActivity2(String activity_id,String need_buyer) {
		List<YxStoreCombination> list = yxStoreCombinationMapper.selectList(null);
		JSONObject jo1 = new JSONObject();
		JSONObject jo = new JSONObject();
		jo1.put("data", list);
		jo.put("endtime", new Date());
		jo.put("goods", jo1);
		jo.put("id", 20);
		jo.put("richtext_id", 3);
		jo.put("richtext_title", "关于我们");
		jo.put("rules", "{activity_auto_close: \"10\", limit_buy: \"5\", order_auto_close: \"10\"},");
		jo.put("starttime", 1625587200);
		jo.put("status_code", "ing");
		jo.put("title", "718秒杀活动");
		jo.put("type", "seckill");
		return jo;
	}

	@Override
	public JSONObject getTemplate() {


		List<WxShopMenu> wxShopMenus = wxShopMenuMapper.selectList(null);

		List<YxSystemGroupData> yxSystemGroupData = groupDataService.queryAll(null);

		String homeStr = "[{category: \"home\",\n" +
										"content: {height: 530,\n" +
													"list: [{bgcolor: \"#aaeeb2\",\n" +
															"image: \"http://file.shopro.top/uploads/20210518/919a402e8aabfa0a2100a4215b586286.jpg\",\n" +
															"name: \"\",\n" +
															"path: \"\",\n" +
															"path_name: \"\",\n" +
															"path_type: 1}," +
															"{bgcolor: \"#fa471c\",\n" +
															"image: \"http://file.shopro.top/uploads/20210518/325f29f39b0e6f6762b57d6ffebdbd96.png\",\n" +
															"name: \"\",\n" +
															"path: \"\",\n" +
															"path_name: \"\",\n" +
															"path_type: 1}],\n" +
													"name: \"\",\n" +
													"radius: 0,\n" +
													"style: 1,\n" +
													"x: 0,\n" +
													"y: 0},\n" +
										"decorate_id: 1,\n" +
										"id: 6173,\n" +
										"name: \"轮播图\",\n" +
										"type: \"banner\"}," +

										"{category: \"home\",\n" +
										"content: {height: 100,\n" +
													"list: [{bgcolor: \"#fc3535\",\n" +
															"image: \"https://demo.shopro.top/uploads/20210609/900e4b5f807c11a388446d3c05cfc770.png\",\n" +
															"name: \"\",\n" +
															"path: \"https://shopro.top\",\n" +
															"path_name: \"\",\n" +
															"path_type: 2}],\n" +
													"name: \"\",\n" +
													"radius: 0,\n" +
													"style: 1,\n" +
													"x: 0,\n" +
													"y: 0},\n" +
										"decorate_id: 1,\n" +
										"id: 6174,\n" +
										"name: \"轮播图\",\n" +
										"type: \"banner\"}," +


										"{category: \"home\",\n" +
										"content: {list: " + JSONArray.toJSONString(wxShopMenus)+",name: \"\",style: 5},\n" +
										"decorate_id: 1,\n" +
										"id: 6175,\n" +
										"name: \"菜单组\",\n" +
										"type: \"menu\"}," +

										"{category: \"home\",\n" +
										"content: {bgcolor1: \"#FFC30F\",\n" +
													"bgcolor2: \"#F9AF11\",\n" +
													"color: \"#FFFFFF\",\n" +
													"ids: \"1,2\",\n" +
													"name: \"\",\n" +
													"pricecolor: \"#FFFFFF\",\n" +
													"style: 2},\n" +
										"decorate_id: 1,\n" +
										"id: 6176,\n" +
										"name: \"优惠券\",\n" +
										"type: \"coupons\"}," +

										"{category: \"home\",\n" +
										"content: {team_num: \"2\", groupon_name: \"23123\", name: \"拼团大优惠\", style: 2, id: 18},\n" +
										"decorate_id: 1,\n" +
										"id: 6177,\n" +
										"name: \"拼团\",\n" +
										"type: \"groupon\"}," +

										"{category: \"home\",\n" +
										"content: {seckill_name: \"718秒杀活动\", name: \"限时秒杀\", style: 2, id: 20},\n" +
										"decorate_id: 1,\n" +
										"id: 6178,\n" +
										"name: \"秒杀\",\n" +
										"type: \"seckill\"}," +

										"{category: \"home\",\n" +
										"content: {list: [{image: \"http://file.shopro.top/uploads/20210518/d51990f888b1d8449316adb3c234d415.gif\",\n" +
															"name: \"\",\n" +
															"path: \"\",\n" +
															"path_name: \"\",\n" +
															"path_type: 1}],\n" +
													"name: \"\",\n" +
													"style: 1},\n" +
										"decorate_id: 1,\n" +
										"id: 6179,\n" +
										"name: \"广告魔方\",\n" +
										"type: \"adv\"}," +

										"{category: \"home\",\n" +
										"content: {category_arr: [{children: [{children: [{createtime: 1621406730,\n" +
																							"description: \"\",\n" +
																							"id: 46,\n" +
																							"image: \"http://file.shopro.top/uploads/20210519/71bd6b2223883394227b9db8fdc25573.png\",\n" +
																							"name: \"刀剪砧板\",\n" +
																							"pid: 45,\n" +
																							"status: \"normal\",\n" +
																							"type: \"\",\n" +
																							"updatetime: 1621406730,\n" +
																							"weigh: 0}],\n" +
																			"createtime: 1621406730,\n" +
																			"description: \"\",\n" +
																			"id: 45,\n" +
																			"image: \"\",\n" +
																			"name: \"厨房用品\",\n" +
																			"pid: 44,\n" +
																			"status: \"normal\",\n" +
																			"type: \"\",\n" +
																			"updatetime: 1623144061,\n" +
																			"weigh: 0}],\n" +
																"createtime: 1621406730,\n" +
																"description: \"舒适生活\",\n" +
																"id: 44,\n" +
																"image: \"http://file.shopro.top/uploads/20210519/b505c4c6c4aefdb3467877f2ef21c534.jpeg\",\n" +
																"name: \"居家生活\",\n" +
																"pid: 43,\n" +
																"status: \"normal\",\n" +
																"type: \"\",\n" +
																"updatetime: 1623144061,\n" +
																"weigh: 0}],\n" +
													"ids: \"44,69,70,71,72,73,163\",\n" +
													"style: 1},\n" +
										"decorate_id: 1,\n" +
										"id: 6180,\n" +
										"name: \"分类选项卡\",\n" +
										"type: \"category-tabs\"}" +
										"]";

					String popupStr=" {list: [{btnimage: \"\",\n" +
															"image: \"http://file.shopro.top/uploads/20210518/9136ecddcddf6607184fab689207e7e3.png\",\n" +
															"name: \"\",\n" +
															"path: \"/pages/app/coupon/list\",\n" +
															"path_name: \"优惠券中心\",\n" +
															"path_type: 1,\n" +
															"style: 1}]}";

					String userStr="[{category: \"user\",\n" +
										"content: {color: \"#eeeeee\",\n" +
													"image: \"http://file.shopro.top/uploads/20210522/c4e353836a5d04e92697d22f95d0c5a5.png\",\n" +
													"name: \"用户卡片\",\n" +
													"style: 2},\n" +
										"decorate_id: 1,\n" +
										"id: 6183,\n" +
										"name: \"用户卡片\",\n" +
										"type: \"user\"}," +

										"{category: \"user\",\n" +
										"content: [],\n" +
										"decorate_id: 1,\n" +
										"id: 6184,\n" +
										"name: \"订单卡片\",\n" +
										"type: \"order-card\"}," +

										"{category: \"user\",\n" +
										"content: [],\n" +
										"decorate_id: 1,\n" +
										"id: 6185,\n" +
										"name: \"资产卡片\",\n" +
										"type: \"wallet-card\"}," +

										"{category: \"user\",\n" +
										"content: {list: [{image: \"http://file.shopro.top/uploads/20210518/b726f027bd679f0f5a36c6e301430790.png\",\n" +
														"name: \"商品收藏\",\n" +
														"path: \"/pages/user/favorite\",\n" +
														"path_name: \"我的收藏\",\n" +
														"path_type: 1}," +
														"{image: \"http://file.shopro.top/uploads/20210518/d4e05c1560722ec63fde08e3217d3296.png\",\n" +
														"name: \"浏览足迹\",\n" +
														"path: \"/pages/user/view-log\",\n" +
														"path_name: \"浏览足迹\",\n" +
														"path_type: 1}," +
														"{image: \"http://file.shopro.top/uploads/20210518/234139fd11f6f8451e4c517f256c6b45.png\",\n" +
														"name: \"积分商城\",\n" +
														"path: \"/pages/app/score/list\",\n" +
														"path_name: \"积分商品\",\n" +
														"path_type: 1}," +
														"{image: \"http://file.shopro.top/uploads/20210518/5d53a6e7f940c5ef925f63c1810c8429.png\",\n" +
														"name: \"我的拼团\",\n" +
														"path: \"/pages/activity/groupon/my-groupon\",\n" +
														"path_name: \"我的拼团\",\n" +
														"path_type: 1}," +
														"{image: \"http://file.shopro.top/uploads/20210518/555ef0a1151e83014610b288e53827c2.png\",\n" +
														"name: \"常见问题\",\n" +
														"path: \"/pages/public/faq\",\n" +
														"path_name: \"常见问题\",\n" +
														"path_type: 1}," +
														"{image: \"http://file.shopro.top/uploads/20210518/9ac9ef6f9df49f89ace437c53a76adca.png\",\n" +
														"name: \"系统设置\",\n" +
														"path: \"/pages/user/set\",\n" +
														"path_name: \"系统设置\",\n" +
														"path_type: 1}," +
														"{image: \"http://file.shopro.top/uploads/20210518/a470b691a09eec29d56e0a55b02f70e0.png\",\n" +
														"name: \"分销中心\",\n" +
														"path: \"/pages/app/commission/index\",\n" +
														"path_name: \"分销中心\",\n" +
														"path_type: 1}," +
														"{image: \"https://demo.shopro.top/uploads/20210618/643f17743afc2524635ad5e0b7734426.png\",\n" +
														"name: \"申请团长\",\n" +
														"path: \"/pages/app/merchant/apply\",\n" +
														"path_name: \"门店入驻\",\n" +
														"path_type: 1}],\n" +
													"name: \"\"},\n" +
										"decorate_id: 1,\n" +
										"id: 6186,\n" +
										"name: \"宫格列表\",\n" +
										"type: \"grid-list\"}]";


		List<WxHomeLayout> wxHomeLayoutList = wxHomeLayoutMapper.selectList(new LambdaQueryWrapper<WxHomeLayout>()
			.eq(WxHomeLayout::getParentId, 0).orderByAsc(WxHomeLayout::getSort));

		JSONObject jo = new JSONObject(new LinkedHashMap());

		for (WxHomeLayout wxHomeLayout : wxHomeLayoutList) {
			List<WxHomeLayout> wxHomeLayouts = wxHomeLayoutMapper.selectList(new LambdaQueryWrapper<WxHomeLayout>()
				.eq(WxHomeLayout::getParentId, wxHomeLayout.getId())
				.orderByAsc(WxHomeLayout::getSort));
			jo.put(wxHomeLayout.getType(), wxHomeLayouts);
		}
		JSONArray jsonArray=null;
		JSONObject jsonObject=null;
		JSONObject jsonObject1=null;
		if (jo.getJSONArray("float-button")!=null){
			jsonArray = jo.getJSONArray("float-button");
			jsonObject = jsonArray.getJSONObject(0);
			List<WxFloatButton> wxFloatButtons = wxFloatButtonMapper.selectList(new LambdaQueryWrapper<WxFloatButton>()
						.orderByAsc(WxFloatButton::getSort));
			jsonObject1 = new JSONObject();
			jsonObject1.put("image", "http://file.shopro.top/uploads/20210518/f6b9c9d20d21df541ac52e9548486e1a.png");
			jsonObject1.put("list", wxFloatButtons);
			jsonObject.put("content", jsonObject1);
			jsonArray.clear();
			jsonArray.add(jsonObject);
			jo.put("float-button", jsonArray);
		}
		if (jo.getJSONArray("popup") != null) {
			jsonArray = jo.getJSONArray("popup");
			jsonObject = jsonArray.getJSONObject(0);
			jsonObject.put("content", JSON.parseObject(popupStr));
			jsonArray.clear();
			jsonArray.add(jsonObject);
			jo.put("popup",jsonArray);
		}
		if (jo.getJSONArray("tabbar") != null) {
			jsonArray = jo.getJSONArray("tabbar");
			jsonObject = jsonArray.getJSONObject(0);
			List<WxTabbar> wxTabbars = wxTabbarMapper.selectList(new LambdaQueryWrapper<WxTabbar>().orderByAsc(WxTabbar::getSort));
			jsonObject1 = new JSONObject();
			jsonObject1.put("activeColor", "#999");
			jsonObject1.put("bgcolor", "#fff");
			jsonObject1.put("color", "#000");
			jsonObject1.put("isshow", true);
			jsonObject1.put("style", 1);
			jsonObject1.put("list", wxTabbars);
			jsonObject.put("content", jsonObject1);
			jsonArray.clear();
			jsonArray.add(jsonObject);
			jo.put("tabbar",jsonArray);
		}
		if (jo.getJSONArray("user") != null) {
			jsonArray = JSON.parseArray(userStr);
			JSONArray jsonArray1 = new JSONArray();
			for (int i = 0; i < jo.getJSONArray("user").size(); i++) {
				jsonObject = jo.getJSONArray("user").getJSONObject(i);
				jsonObject.put("content", jsonArray.getJSONObject(i));
				jsonArray1.add(jsonObject);
			}
			jo.put("user", jsonArray1);
		}
		jo.put("home", JSON.parseArray(homeStr));
//		return JSON.parseObject("{"+floatButtonStr+","+homeStr +","+ popupStr+","+tabbarStr +","+userStr+"}");
		return jo;
	}


}
